package com.hrm.service;

import java.util.List;

import com.hrm.entity.Role;
import com.hrm.entity.User;
import com.hrm.entity.UserRole;
import com.hrm.util.Page;

public interface RoleService {
	
	public List<Role> getRoles(Page page);
	public List<Role> getRoles();
	public Role getRoleById(long id);
	public int addRole(Role role);
	public int updateRole(Role role);
	public int deleteRoleById(long id);
	public int deleteUserRoleByRoleId(long id,String userids);
	List<User> getUsersNotRoleId(Page page,long id);
	public int getUsersCountsNotRoleId(long id);
	List<User> getUsersByRoleId(Page page,long id);
	public int getUsersCountsByRoleId(long id);
	public int addUsersToRole(long id,String userids,User user);
	public int addActionsToRole(long id,String actionids,User user);
	public List<UserRole> getRolesByUserId(long id);
}
